//
// Print styling
// Thanks @ Zen for a good starting point
//

@media print {

  // underline all links
  a {
    &:link,
    &:visited {
      text-decoration: underline !important;
    }
  }

  // CSS2 selector to add visible href after links
  .main {
    a:link:after,
    a:visited:after {
      content: " (" attr(href) ") ";
      font-size: 0.8em;
      font-weight: normal;
    }
  }

  // Un-float the content
  .main,
  .main .section {
    float: none;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
  }

  // Turn off any background colors or images
  body,
  #page-wrapper,
  #page,
  #wrap-columns,
  #main,
  .main,
  .main .section,
  h1,h2,h3,h4,h5,h6 {
    color: #000;
    background-color: transparent !important;
    background-image: none !important;
    border:none !important;
  }

  // Hide sidebars and nav elements
  #skip-to-nav,
  #toolbar,
  .primary-menu,
  .secondary-menu,
  .masthead,
  .region-header,
  .region-featured,
  .region-sidebar-first,
  .region-sidebar-second,
  .region-footer,
  .breadcrumb,
  div.tabs,
  .action-links,
  .links,
  .book-navigation,
  .forum-topic-navigation,
  .pager,
  .feed-icons,
  .messages,
  .message,
  .arctica-attr-link,
  .dev-query,
  #block-system-powered-by,
  form  {
    visibility: hidden;
    display: none;
  }

  // If you un-comment the "page { overflow-y: hidden; }" ruleset, Firefox clips
  // the content after the first page.
  #page-wrapper {
    overflow-y: visible;
  }

} // End @media print
